-- GENERATED SPELL FOR [Shadowhide Darkweaver] --


function spell0_429(pUnit, Event) --@Curse of Weakness,n/a--
pUnit:FullCastSpellOnTarget(6205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_429', 537, 1)
end

function spell1_429(pUnit, Event) --@Rain of Fire,n/a--
pUnit:FullCastSpellOnTarget(5740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_429', 8000, 1)
end

function spell2_429(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(9613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_429', 3000, 1)
end

function Sorts_429(pUnit, Event)
local choix_sorts_429 = math.random(0, 2)
if choix_sorts_429 == 0 then
pUnit:RegisterEvent('spell0_429', 1, 1)
end
if choix_sorts_429 == 1 then
pUnit:RegisterEvent('spell1_429', 1, 1)
end
if choix_sorts_429 == 2 then
pUnit:RegisterEvent('spell2_429', 1, 1)
end
end

function mob429_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_429', math.random(1500, 3000), 1)
end

function mob429_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob429_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob429_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(429, 1, 'mob429_Action')
RegisterUnitEvent(429, 2, 'mob429_Leave')
RegisterUnitEvent(429, 3, 'mob429_Kill')
RegisterUnitEvent(429, 4, 'mob429_Die')
